package com.meisiabc.app.config;

import com.meisiabc.support.wechat.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class WechatConfig {
    @Bean
//    @Profile("prod")
    public WechatClient wechatClient() {
        return new WechatClient();
    }

//    @Bean
//    @Profile("!prod")
//    public WechatClient mockWechatClient() {
//        return new MockWechatClient();
//    }

    @Bean
//    @Profile("prod")
    public WechatPay wechatPay() {
        return new WechatPay();
    }

//    @Bean
//    @Profile("!prod")
//    public WechatPay mockWechatPay() {
//        return new MockWechatPay();
//    }

    @Bean
    public WechatMpClient wechatMpClient() {
        return new WechatMpClient();
    }
}
